//
//  UserSetUpViewController.m
//  ClassRoom
//
//  Created by apple on 12-12-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "UserSetUpViewController.h"

@interface UserSetUpViewController ()

@end

@implementation UserSetUpViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.title = @"个人设置";
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [domainTextFeild release];
    domainTextFeild = nil;
    [areaTextFeild release];
    areaTextFeild = nil;
    [QQTextFeild release];
    QQTextFeild = nil;
    [phoneTextFeild release];
    phoneTextFeild = nil;
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (void)dealloc {
    [domainTextFeild release];
    [areaTextFeild release];
    [QQTextFeild release];
    [phoneTextFeild release];
    [super dealloc];
}


- (IBAction)keyBoardDown:(id)sender{
    [domainTextFeild resignFirstResponder];
    [areaTextFeild resignFirstResponder];
    [QQTextFeild resignFirstResponder];
    [phoneTextFeild resignFirstResponder];
    
    NSTimeInterval animationDuration = 0.30f;       
    [UIView beginAnimations:@"ResizeForKeyboard" context:nil];
    [UIView setAnimationDuration:animationDuration];       
    CGRect rect = CGRectMake(0, 20, 320, 460);       
    self.view.frame = rect;
}
@end
